# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月20日
"""
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT # 对齐
from docx import Document
from docx.enum.text import WD_LINE_SPACING
from docx.shared import Pt

file = Document('./练习/练习3.docx')

for para in file.paragraphs:
	# para.paragraph_format.line_spacing_rule = WD_LINE_SPACING.ONE_POINT_FIVE # 1.5倍行距
	para.paragraph_format.line_spacing_rule = WD_LINE_SPACING.EXACTLY
	para.paragraph_format.line_spacing = Pt(18)


file.save('./练习/14结果04.docx')

